package org.gdstash.ui.util;

import javax.swing.*;
import javax.swing.plaf.basic.BasicComboPopup;
import javax.swing.plaf.basic.ComboPopup;
import javax.swing.plaf.metal.MetalComboBoxUI;

/**
 * 水平滚动条
 *
 * @author pengzhikang
 * @date 2025/1/21 17:23
 * @since 1.0.0
 */
public class WideMetalComboBoxUI extends MetalComboBoxUI {

    @Override
    protected ComboPopup createPopup() {
        return new BasicComboPopup(comboBox) {
            @Override
            protected JScrollPane createScroller() {
                return new JScrollPane(list);
            }
        };
    }
}
